package com.zqs.compareface.utils.impl;

import com.baidu.aip.face.AipFace;
import com.zqs.compareface.utils.ConnectionBaidu;


/**
 * @program: FaceCompar
 * @description:
 * @author: ZQS
 * @create: 2021-08-07 18:29
 */
public class FaceApiUtil implements ConnectionBaidu {
    /**
     * 静态代码块在类加载的时候执行
     */
    static {
        try {
            Class.forName(CLASS_NAME);
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
    }
    /**
     * 建立连接
     * @return 链接对象
     */

    public static AipFace getAipFace(){
        AipFace client = new AipFace(APP_ID, API_KEY, SECRET_KEY);
        return client;
    }

}
